home *** CD-ROM | disk | FTP | other *** search
Text File | 2000-01-12 | 739 b | 40 lines | [TEXT/mdos] |
- tell application "$p"
- set winList to list windows
- set allWindows to {}
- repeat with windowId in winList
- set windowInfoList to (get window info (windowId))
- set allWindows to (windowInfoList & allWindows)
- end repeat
- quit
- end tell
-
- tell application "$f"
- repeat (60) times
- if exists application process "$n" then
- delay 1
- else
- exit repeat
- end if
- end repeat
- $m
- end tell
-
- tell application "$p"
- webActivate
- set windowId to 0
- set winList to list windows
- if (count winList) > 0 then
- set windowId to item 1 of winList
- end if
- set even to 1
- repeat with winUrl in allWindows
- if even = 1 then
- OpenURL winUrl toWindow windowId
- set windowId to 0
- set even to 0
- else
- set even to 1
- end if
- end repeat
- end tell
-